package com.itdaan.portal.business.service;

import java.util.List;
import java.util.Map;

import com.itdaan.portal.business.domain.Page;
import com.itdaan.portal.business.domain.User;
import com.itdaan.portal.common.exception.ServiceException;
/**
 * @author www.itdaan.com
 */
public interface UserService {

	public void insert(User user) throws ServiceException;
	
	public void insertWithDefaultRole(User user) throws ServiceException;
	
	public void deleteByIds(String ids) throws ServiceException;
	
	public void update(User user) throws ServiceException;
	
	public User getById(int id) throws ServiceException;
	
	public User getByUserName(String username) throws ServiceException;
	
	public User getByUidAndSource(String uid, int source) throws ServiceException;
	
	public Page getByPage(Page page) throws ServiceException;
	
	public List<User> getNewestUsers(Map<String,Object> conditions) throws ServiceException; 
}
